package com.xazenith.app;

import java.util.Base64;

/**
 * BASE64 加密解密工具
 *
 * @author zhouwei
 * @since 2020-12-21
 *
 */
public final class Base64EncodeUtil {

    private Base64EncodeUtil(){}

    public static byte[] encode(byte[] src) {
        return Base64.getEncoder().encode(src);
    }

    public static byte[] decode(byte[] src) {
        return Base64.getDecoder().decode(src);
    }

}
